package com.miao.elm.feign;

import com.miao.elm.entity.BusinessEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("business-server")
public interface BusinessFeignClient {

    @RequestMapping("/getBusinessById")
    BusinessEntity getBusinessById(@RequestParam("businessId") int businessId);

}
